// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:28

// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   tk.java

package com.zelix;


// Referenced classes of package com.zelix:
//            qk, op, zl, pk, 
//            mh, il, uh, vh, 
//            si, nh

public final class tk extends qk
{

    private static String z;

    public tk(int j)
    {
        super(j);
    }

    double a(op op1, String s)
    {
        double d;
label0:
        {
            int j;
label1:
            {
                j = si.g;
                d = 1.0D;
                mh mh1 = (mh)a(0);
                if(!(mh1 instanceof zl))
                    break label0;
                String s1 = mh1.a();
                if(s1 == null || il.l(s1))
                    break label1;
                if(!il.h(s1))
                {
                    d *= 0.10000000000000001D;
                    if(j == 0)
                        break label1;
                }
                d *= 0.5D;
            }
label2:
            {
                if(s != null && !s.equals(z))
                    d *= 0.10000000000000001D;
                if(op1 == null)
                    break label0;
                if(op1.t())
                {
                    d *= 0.25D;
                    if(j == 0)
                        break label2;
                }
                if(op1.q())
                {
                    d *= 0.25D;
                    if(j == 0)
                        break label2;
                }
                if(op1.s())
                {
                    d *= 0.25D;
                    if(j == 0)
                        break label2;
                }
                if(op1.r())
                    d *= 0.25D;
            }
label3:
            {
                if(op1.u())
                    d *= 0.14999999999999999D;
                if(op1.e())
                {
                    d *= 0.20000000000000001D;
                    if(j == 0)
                        break label3;
                }
                if(op1.c())
                    d *= 0.20000000000000001D;
            }
            if(op1.g())
                d *= 0.01D;
            if(op1.v())
                d *= 0.10000000000000001D;
        }
        return d;
    }

    public void a(uh uh1, nh nh)
    {
        a(0).a(this, nh);
        if(uh1 instanceof pk)
            ((pk)uh1).a(this);
    }

    boolean i()
    {
        mh mh1 = (mh)a(0);
        if(mh1 instanceof zl)
            return ((zl)mh1).i();
        else
            return false;
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x54;
                    break;
                case 1:
                    key = 105;
                    break;
                case 2:
                    key =75;
                    break;
                case 3:
                    key =26;
                    break;
                default:
                    key =10;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        z = z("|Cb".toCharArray());        
    }
}